﻿<%@ Register TagPrefix="ucCommon" TagName="Common" Src="../Common/Inc/Common.ascx" %>
<%@ Register TagPrefix="ucTabTitle" TagName="TabTitle" Src="../Common/Inc/TabTitle.ascx" %>
<%@ Register TagPrefix="ucCopyright" TagName="Copyright" Src="../Common/Inc/Copyright.ascx" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Crd3012p.aspx.cs" Inherits="Updms.Crd.Crd3012p" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>▒ UPDMS [Crd3012p] ▒▒▒▒▒▒▒▒▒▒</title>
<ucCommon:Common id="Common" runat="server"></ucCommon:Common>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager runat="server" id="ScriptManager1" EnableScriptGlobalization="true"></asp:ScriptManager>

<table id="table_frame">
	<tr>
		<td id="contents_area">
			<!-- 제목 시작 -->
			<ucTabTitle:TabTitle id="TabTitle" TagPrefixs="Crd3012p" runat="server"></ucTabTitle:TabTitle>
			<!-- 제목 끝 -->
			<!-- AJAX 시작 -->
			<asp:UpdatePanel ID="UpdatePanel1" runat="server">
			<ContentTemplate>
			<!-- 버튼 시작 -->
			<div class="button_area">
				<asp:linkbutton id="ibtn_close" Text="닫기" runat="server" CssClass="ibtn ibtn_close" OnClientClick="javascript:window.close();return false;"></asp:linkbutton>
				<asp:linkbutton id="ibtn_save" Text="저장" runat="server" CssClass="ibtn ibtn_save" OnClientClick="return chkSave()" OnClick="ibtn_save_Click"></asp:linkbutton>						
			</div>
			<!-- 버튼 끝 -->
			<!-- 디테일1 시작 -->
			<div class="div_left">Keyword : <asp:label id="lbl_search_keyword" runat="server"></asp:label></div>
			<table id="table_detail_1" class="table_detail">
				<tr>
					<td class="lbl" width="11%"><asp:Literal id="ltr_card" Text="카드" runat="server" /></td>
					<td class="ctl" width="22%"><asp:dropdownlist id="ddl_card_cd" AutoPostBack="true" OnSelectedIndexChanged="ddl_card_cd_SelectedIndexChanged" runat="server"  CssClass="ddl"></asp:dropdownlist></td>
					<td class="lbl" width="11%"><asp:Literal id="ltr_biz_dt" Text="카드사용일" runat="server" /></td>
					<td class="ctl" width="22%"><asp:textbox id="txt_biz_dt" runat="server" CssClass="ib_b_dt req"></asp:textbox>&nbsp;<img src="../Common/Images/calendar.png" id="ci_biz_dt" class="ci_calendar" runat="server" /></td>
					<td class="lbl" width="11%"><asp:linkbutton id="lbtn_paymnt_dt" runat="server" ToolTip="결제예정일계산" Font-Underline="True" OnClick="lbtn_paymnt_dt_Click"><asp:Literal id="ltr_paymnt_dt" Text="결제예정일" runat="server" /></asp:linkbutton></td>
					<td class="ctl" width="22%"><asp:dropdownlist id="ddl_paymnt_dt" runat="server" CssClass="ddl" Height="20px"></asp:dropdownlist></td>
				</tr>
			</table>
			<!-- 디테일1 끝 -->
			<!-- 카피라이트 시작 -->
			<ucCopyright:Copyright id="Copyright" runat="server"></ucCopyright:Copyright>
			<!-- 카피라이트 끝 -->
			<!-- 히든값 시작 -->
			<div id="hdn_data">
				<asp:label id="lbl_pk" runat="server"></asp:label>
			</div>
			<!-- 히든값 끝 -->
			<act:CalendarExtender ID="ce_biz_dt" 
				runat="server" 
				TargetControlID="txt_biz_dt" 
				Format="yyyy-MM-dd" 
				PopupButtonID="ci_biz_dt" 
				EnableViewState="False" 
				BehaviorID="bi_biz_dt" 
				CssClass="calendar">
			</act:CalendarExtender>
			<!-- CalendarExtender 끝 -->
			</ContentTemplate>
			</asp:UpdatePanel>
			<!-- AJAX 끝 -->
		</td>
	</tr>
</table>

<asp:updateprogress AssociatedUpdatePanelID="UpdatePanel1" ID="updateProgress" runat="server">
	<progresstemplate>
		<div id="progressBackgroundFilter"></div>
		<div id="processMessage">
			<div id="processing"></div>
			<img src="../Common/Images/processing_img.gif" />
		</div>
	</progresstemplate>
</asp:updateprogress>

</form>
<script type="text/javascript" language="javascript" defer="defer">
	//저장
	function chkSave() {
		if ($F("txt_biz_dt").blank()) {
			msgBox.alert(getMsg(MSG_ERR_033), setFocus, "txt_biz_dt"); //카드사용일을 입력해 주세요
			return false;
		}
		if ($F("ddl_paymnt_dt").blank()) {
			msgBox.alert(getMsg(MSG_ERR_143), setFocus, "ddl_paymnt_dt"); //결제예정일을 선택하세요
			return false;
		}
		//날짜체크
		if (!isDateHyphen($F("txt_biz_dt"))) {
			msgBox.alert(getMsg(MSG_ERR_082), setFocus, "txt_biz_dt"); //잘못된 날짜형식입니다.(YYYY-MM-DD)
			return false;
		}

		msgBox.confirm(getMsg(MSG_CFM_010), doSave);	//변경하시겠습니까?
		return false;
	}

	// 결제예정일 누르면 체크
	function chkPaymntDt() {
		if ($F("txt_biz_dt").blank()) {
			msgBox.alert(getMsg(MSG_ERR_033), setFocus, "txt_biz_dt"); //카드사용일을 입력해 주세요
			return false;
		}
	}

</script>
</body>
</html>